<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>padding</title>
    <style>
        div{
            border: 1px solid red;
            padding: 20px;
        }
        span{
            display: inline-block;
            border: 1px solid blue;
            padding: 20px;
        }
        .one{
            padding: 20px 10px;
        }
        .two{
            padding: 5px 20px 50px 100px;
        }
        .three{
            padding-top: 5px;
            padding-right: 20px;
            padding-bottom: 50px;
            padding-left: 100px;
        }
    </style>
</head>
<body>
    <div>内边距设置-1</div>
    <br>
    <span>span设置内边距</span>
    <span class="one">span1</span>
    <span class="two">span2</span>
    <span class="three">span3</span>
</body>
</html>